<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>snort</Name>
        <Homepage>http://www.snort.org</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>GPLv2</License>
        <IsA>service</IsA>
        <Summary>Network intrusion prevention and detection system</Summary>
        <Description>Snort® is an open source network intrusion prevention and detection system (IDS/IPS) developed by Sourcefire</Description>
        <Archive sha1sum="f5c1e279d7199d2d74b5d8abd28ca7751a15e8d2" type="targz">https://www.snort.org/downloads/snort/snort-2.9.8.0.tar.gz</Archive>
        <!--Rules changing everday-last update 13-Sep-2013 14:50-->
        <!--<Archive sha1sum="f8b2f284123a249df4a4c1e3021b0e1f85308ac2" type="targz">http://rules.emergingthreats.net/open/snort-2.9.0/emerging.rules.tar.gz</Archive>-->
        <Archive sha1sum="0041aa255c1175e769c8cdb728e84345dfc8db5b" type="targz">https://rules.emergingthreats.net/open/snort-2.9.0/emerging.rules.tar.gz</Archive>
        <BuildDependencies>
            <Dependency>zlib-devel</Dependency>
            <Dependency>libdaq-devel</Dependency>
            <Dependency>libpcap-devel</Dependency>
            <Dependency>libpcre-devel</Dependency>
            <Dependency>libdnet-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>libnfnetlink-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <Patch level="1">fix-snort-conf.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>snort</Name>
        <RuntimeDependencies>
            <Dependency>zlib</Dependency>
            <Dependency>libdaq</Dependency>
            <Dependency>libpcap</Dependency>
            <Dependency>libpcre</Dependency>
            <Dependency>libdnet</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>libnfnetlink</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="data">/etc/snort</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="man">/usr/share/man</Path>
            <Path fileType="doc">/usr/share/doc</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="data">/etc/snort/rules</Path>
        </Files>
        <AdditionalFiles>
            <AdditionalFile target="/etc/snort/snort.conf">etc/snort/snort.conf</AdditionalFile>
            <AdditionalFile target="/etc/snort/rules/threshold.conf">etc/snort/threshold.conf</AdditionalFile>
            <AdditionalFile target="/etc/snort/rules/classification.conf">etc/snort/classification.config</AdditionalFile>
            <AdditionalFile target="/etc/snort/rules/reference.conf">etc/snort/reference.config</AdditionalFile>
            <AdditionalFile target="/etc/snort/attribute_table.dtd">etc/snort/attribute_table.dtd</AdditionalFile>
            <AdditionalFile target="/etc/snort/rules/gen-msg.map">etc/snort/gen-msg.map</AdditionalFile>
            <AdditionalFile target="/etc/snort/rules/unicode.map">etc/snort/unicode.map</AdditionalFile>
        </AdditionalFiles>
    </Package>

    <Package>
        <Name>snort-devel</Name>
        <Summary>Development files for snort</Summary>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="library">/usr/lib/pkgconfig</Path>
            <Path fileType="header">/usr/src/snort_dynamicsrc</Path>
        </Files>
    </Package>

    <History>
        <Update release="4">
            <Date>2016-03-13</Date>
            <Version>2.9.8.0</Version>
            <Comment>Version bump, rebuilt with docker</Comment>
            <Name>İbrahim KARAGÜZEL</Name>
            <Email>karaguzelibrahim@gmail.com</Email>
        </Update>
      <Update release="3">
            <Date>2015-02-20</Date>
            <Version>2.9.7.0</Version>
            <Comment>Version bump</Comment>
            <Name>Stefan Gronewold (groni)</Name>
            <Email>groni@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2014-02-11</Date>
            <Version>2.9.5.3</Version>
            <Comment>Rebuild Unused</Comment>
            <Name>Varol Maksutoğlu</Name>
            <Email>waroi@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2013-08-30</Date>
            <Version>2.9.5.3</Version>
            <Comment>First release</Comment>
            <Name>Aydın Demirel</Name>
            <Email>aydin.demirel@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
